package com.guavestudios.fcon.core {
	
	/**
	* Defines 2 Error Piplins
	* @author Default
	*/
	public class ConsolePipe {
		
		protected var output:Array;
		protected var errorOut:Array;
		protected var errorIn:Array;
		protected var input:Array;
		
		public function ConsolePipe() {
			errorOut = new Array();
		}
		public function writeOut(obj:Object):void
		{
			output.push(obj);
		}
		public function clearOut():void
		{
			output = new Array();
		}
		public function readIn():Array
		{
			return input;
		}
		public function readError():Array
		{
			return errorIn;
		}
		public function writeError(obj:Object):void
		{
			errorOut.push(obj);
		}
		public function clearError():void
		{
			errorOut = new Array();
		}
		public function transform():void
		{
			input = output;
			output = new Array();
			errorIn = errorOut;
			errorOut = new Array();
		}
	}
	
}